package cn.edu.nju.ws.sview.rdf;


/**
 * temporary RDF resource
 * 
 * @author Saisai gong
 * 
 */
public class TemporaryRDFResource extends Resource {
    private Resource resource = null;
    TemporaryRDFResource(Resource resource){
  	  this.resource = resource;
    }
    public int hashCode(){
  	  return this.resource.hashCode()*31;
    }
    
    public boolean equals(Object obj){
  	  if(obj instanceof TemporaryRDFResource){
  		TemporaryRDFResource mpresource = (TemporaryRDFResource)obj;
  		  if(this.resource.equals(mpresource.resource))
  			  return true;
  	  }
  	  return false;
    }
    public String toString(){
  	  return "Magic"+resource.toString();
    }
}